//
// Created by zhupi on 2024/11/2.
//

#include "properties_dialog_view_ctrl.h"

PropertiesDialogViewCtrl &PropertiesDialogViewCtrl::GetIns() {
    static PropertiesDialogViewCtrl ins;
    return ins;
}

void PropertiesDialogViewCtrl::Initial(const QString &name, int projectId)
{
//    qDebug() << " ============================111111111111111111111 ";
    if (dialog_ != nullptr) {
        delete dialog_;
        dialog_ = nullptr;
    }
    dialog_ = new PropertiesDialog(nullptr);
    dialog_->Initial();
    dialog_->exec();
    dialog_ = nullptr;
}
